<template>
	<view>

	</view>
</template>

<script>
	import user from '@/api/user.js';
	export default {
		data() {
			return {

			}
		},
		onLoad() {
			this.alipay()
		},
		methods: {
			alipay() {
				user.alipay({
					amount: 1,
					type: 'alipay'
				}).then(res => {
					if (res.code === 1) {
						console.log(res.data)
					} else {

					}
				})
			}
		}
	}
</script>

<style>

</style>